// ExamServerDlg.h : header file
//

#pragma once

#include "ConnectionInfoWindow.h"
#include "LogWindow.h"

// CExamServerDlg dialog
class CExamServerDlg : public CDialog
{
// Construction
public:
    CExamServerDlg(CWnd* pParent = NULL);    // standard constructor

// Dialog Data
    enum { IDD = IDD_EXAMSERVER_DIALOG };

    protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support


// Implementation
protected:
    HICON m_hIcon;
    CMenu m_mainMenu;
    CConnectionInfoWindow m_connectionInfoWnd;
    CLogWindow m_logWnd;
    bool m_flagShowLogWnd;
    int m_connectionInfoWndHeight;
    int m_logWndHeight;

    bool m_flagResizingLogWnd;
    CPoint m_resizingStartPoint;
    int m_resizeingLogWndHeight;
    HCURSOR m_normalCursor;
    HCURSOR m_resizeCursor;


protected:
    void ResizeWindows(void);
    void ConfirmAndExit(void);

protected:
    // Generated message map functions
    virtual BOOL OnInitDialog();
    afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
    afx_msg void OnPaint();
    afx_msg HCURSOR OnQueryDragIcon();
    DECLARE_MESSAGE_MAP()

    virtual void OnOK();
    virtual void OnCancel();

public:
    afx_msg void OnFileExit();
    afx_msg void OnHelpAbout();
    afx_msg void OnViewLogwindow();
    afx_msg void OnSize(UINT nType, int cx, int cy);
    afx_msg void OnTimer(UINT_PTR nIDEvent);
    afx_msg void OnMouseMove(UINT nFlags, CPoint point);
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
    afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    afx_msg void OnStartExam();
    afx_msg void OnStopExam();
    afx_msg void OnExamParameters();
    afx_msg void OnSendMessage();
};
